package com.gaoch.simweather.logic.network

import com.gaoch.simweather.MyApplication
import com.gaoch.simweather.logic.model.*
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface WeatherService {
    @GET("v7/weather/now")
    fun getNowWeather(@Query("location") location:String, @Query("key")key:String= MyApplication.KEY): Call<NowResponse>

    @GET("v7/weather/7d")
    fun getDailyWeather(@Query("location") location:String, @Query("key")key:String= MyApplication.KEY): Call<DailyResponse>

    @GET("v7/air/now")
    fun getAqi(@Query("location") location:String, @Query("key")key:String= MyApplication.KEY): Call<AqiResponse>

    @GET("v7/weather/24h")
    fun getHourlyWeather(@Query("location") location:String, @Query("key")key:String= MyApplication.KEY): Call<HourlyResponse>
}